package com.sc.design.resposibilitychain;

/**
 * @author sc
 * Created on  2017/12/6
 */
public class Women implements IWomen {
    private int type = 0;
    private String request = "";

    /**
     *
     * 1.未出嫁
     * 2.出嫁
     * 3.夫死
     */
    public Women(String _req,int _type){
        this.type = _type;
        switch (this.type){
            case 1:
                this.request = "女儿的请求是"+_req;
                break;
            case 2:
                this.request = "妻子的请求"+_req;
                break;
            case 3:
                this.request = "母亲的请求"+_req;
                break;
            default:
        }
    }
    @Override
    public int getType() {
        return this.type;
    }

    @Override
    public String getRequet() {
        return this.request;
    }
}
